package com.zyl.Ecs.common.domain.device.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
* 
* @TableName ecs_sensor
*/

@Data
@ToString
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName(value = "ecs_sensor")
public class Sensor implements Serializable {

    /**
    * 主键
    */
    @JsonProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
    * 传感器名称
    */
    @JsonProperty("name")
    @TableField(value = "name")
    private String name;

    /**
    * 设备类型id
    */
    @JsonProperty("sensorTypeId")
    @TableField(value = "sensor_type_id")
    private Integer sensorTypeId;

    /**
    * 点位id
    */
    @JsonProperty("positionId")
    @TableField(value = "position_id")
    private Integer positionId;

    /**
    * 坐标值
    */
    @JsonProperty("left")
    @TableField(value = "`left`")
    private Double left;

    /**
    * 坐标值
    */
    @JsonProperty("top")
    @TableField(value = "`top`")
    private Double top;

    /**
    * 逻辑删除标志位
    */
    @JsonProperty("deleted")
    @TableField(value = "deleted")
    private Integer deleted;

    /**
    * 创建时间
    */
    @JsonProperty("createTime")
    @TableField(value = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    /**
    * 更新时间
    */
    @JsonProperty("updateTime")
    @TableField(value = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;


}